package com.ikonke.iot.alarm.domain;

import lombok.*;

/**
 * @Author: liull
 * @Description:
 * @Date: Created in 19:56 2020/6/15
 * @Modified By:
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class R {
    private Integer code;

    private Object data;

    private String msg;

    public static R ok() {
        return new R(200, null, null);
    }

    public static R error(String msg) {
        return new R(500, null, msg);
    }
}
